import 'package:erp/data/http/dio_client.dart';
import 'package:get/get.dart';

class SaleProjectApi {
  static Future saveSaleProjectExtra(dynamic saleProject) {
    var client = Get.find<DioClient>();
    return client.post("/sale/saveSaleProjectExtra", data: saleProject);
  }

  // 分页查询市场立项
  static Future pageSaleProject(Map<String, dynamic> params, int pageNo, {int? pageSize = 10}) {
    var client = Get.find<DioClient>();
    return client.post(
      "/sale/pageSaleProject/${pageNo}/${pageSize}",
      data: params,
    );
  }

  // 查询市场立项信息
  static Future selectSaleProjectVoBySaleProjectNo(String saleProjectNo) {
    var client = Get.find<DioClient>();
    return client.get("/sale/selectSaleProjectVoBySaleProjectNo",
        params: {"saleProjectNo": saleProjectNo}, needTip: true);
  }
}
